package kaka.controls.box
{
	import com.greensock.TweenLite;
	
	import mx.containers.VBox;
	import mx.events.FlexEvent;
	
	public class EfxVbox extends VBox
	{
		public function EfxVbox()
		{
			super();
			addEventListener(FlexEvent.CREATION_COMPLETE,completeHandler);
		}
		private function completeHandler(e:FlexEvent):void
		{
			var childrens:Array=this.getChildren();
			for(var i:int=0;i<childrens.length;i++)
			{
				TweenLite.from(childrens[i],0.5,{alpha:0.0});
				TweenLite.to(childrens[i],1.0,{alpha:1.0,delay:0.2*i});
			}
		}
	}
}